﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment
{
    public partial class createStaffProfileSuccessfully : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string staffId = (string)Session["staffId"];
            staffDetails s = DBmanager.getByStaffId(staffId);

            lblStaffId.Text = s.StaffId;
            lblLastName.Text = s.lastName;
            lblFirstName.Text = s.firstName;
            lblNRIC.Text = s.nric;
            lblDOB.Text = s.dob.ToString("dd/MM/yyyy");
            lblContactNumber.Text = Convert.ToString(s.ContactNumber);
            lblAddress.Text = s.address;
            lblEmail.Text = s.email;
            lblGender.Text = s.gender;
            lblBankAccType.Text = s.bankAccType;
            lblBankAccNumber.Text = s.bankAccNumber;
        }
    }
}